import request from '@/utils/request'

// 查询服务设施类型列表
export function listFacilitytype(query) {
  return request({
    url: '/facilitytype/facilitytype/list',
    method: 'get',
    params: query
  })
}

// 查询服务设施类型详细
export function getFacilitytype(ftId) {
  return request({
    url: '/facilitytype/facilitytype/' + ftId,
    method: 'get'
  })
}

// 新增服务设施类型
export function addFacilitytype(data) {
  return request({
    url: '/facilitytype/facilitytype',
    method: 'post',
    data: data
  })
}

// 修改服务设施类型
export function updateFacilitytype(data) {
  return request({
    url: '/facilitytype/facilitytype',
    method: 'put',
    data: data
  })
}

// 删除服务设施类型
export function delFacilitytype(ftId) {
  return request({
    url: '/facilitytype/facilitytype/' + ftId,
    method: 'delete'
  })
}
